//
//  XinchouCell.m
//  Ten
//
//  Created by anfuer on 2018/8/17.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "XinchouCell.h"

@implementation XinchouCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)moreBtna:(UIButton *)sender {
    [MyUtils collviewSelidex:@"录用列表" toVc:[MyUtils getCurrentVC] andShopInfo:nil];
    
}
+ (instancetype)CellWithTableView:(UITableView *)tableView
{
    static NSString *reuseId = @"XinchouCell";
    XinchouCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseId];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"XinchouCell" owner:nil options:nil] lastObject];
        
    }
    
    
    return cell;
    
    
}


-(void)Cellinit:(NSDictionary*)dic
{
    _lb1.text=WXGStr(dic[@"status_name"]);
    _lb2.text=WXGStr(dic[@"job_info"][@"title"]);
    _lb3.text=[NSString stringWithFormat:@"￥%@/%@",dic[@"job_info"][@"salary"],[WXGStr(dic[@"job_info"][@"salary_type"])isEqualToString:@"2"]?@"月":@"日"];
    _lb4.text=[NSString stringWithFormat:@"%@|%@|%@",dic[@"job_info"][@"city_area_name"],dic[@"job_info"][@"education"],[NSString stringWithFormat:@"工作经验%@",dic[@"job_info"][@"work_year"]]];
    _img1.image=WXGImage(dic[@"status_name"]);
}
@end
